﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DALScolarite
{
    public partial class adminscool
    {
        uvtmoyEntities ent;
        public adminscool connecter(string login, string password)
        {
            ent = new uvtmoyEntities();
            var query = from e in ent.adminscools
                        where e.login == login && e.password == password
                        select e;
            if (query.Any())
            {

                return query.First();
            }
            else
            {
                return null;
            }

        }
    }
}
